<html>
<head>
	<meta charset="utf-8">
	<title>Test</title>
	<script src="https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js">
	</script>
	<script>
        //检查新订单
        // setInterval(getNewOrder, 30000);
        

        $.ajax({
            url:"https://media.jd.com/gotoadv/getCustomCodeURL",
            type: "POST",
            data: {$postData},
            dataType:'json',
            async:false,
            success:function(res){
                if(res.rspCode == 200) {
                    res.data.id = {$id};
                    $.ajax({
                        url:"{:url('task/saveJbUrl')}",
                        type: "POST",
                        data: res.data,
                        dataType:'json',
                        async:false,
                        success:function(res){
                            if(res.rspCode == 200) {
                                var shareData = res.data;
                            }
                        }
                    });
                }
            }
        });

        searchGoods();
        
	</script>
</head>
<body>

<button>Test</button>
</body>
</html>
